<template>
  <el-row class="app-breadcrumb" type="flex" justify="center">
    <el-col :span="24">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item v-if="isLv1Path" class="breadcrumb-index">品牌商</el-breadcrumb-item>
        <el-breadcrumb-item v-if="!isLv1Path" :to="{name: 'brand-aduits'}">品牌商</el-breadcrumb-item>
        <el-breadcrumb-item v-if="!isLv1Path" name="新建审核人员">新建审核人员</el-breadcrumb-item>
      </el-breadcrumb>
    </el-col>
  </el-row>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  computed: {
    isLv1Path() {
      // console.log(this.$route.name)
      return ['brand-aduits', 'brand-sales', 'brand-data'].indexOf(this.$route.name) !== -1
    }
  }
}
</script>
